﻿using System;
using System.Collections.Generic;
using System.Text;


public enum BatteryState
{
    Unknown,//未知状态
    Charging,//充电
    Full,//满电
    NotCharging,//未充电
}
public interface IPlatform
{
    string Name
    {
        get;
    }
    uint MemoryUseByKB
    {
        get;
    }
    float BatteryLevel
    {
        get;
    }
    BatteryState BatteryState
    {
        get;
    }

    #region 输入对话框（不强制平台提供，如果未提供，说明该平台默认有物理键盘）
    //InputBox 并不要求平台一定要提供，如果这里return false，你就自己看着办吧
    bool ShowInputBox(Action<string> callback, string title, string message, string btnok = "OK", string btnCancel = "Cancel", string? placeholder = null, int maxLength = -1, string? initialValue = null);
    #endregion
}
